package com.csii.mobilebanking.user;

import android.app.ProgressDialog;
import android.content.Context;

public class HpDialog {
	private static Context mContext = null;
	private static ProgressDialog mDialog = null;
	
	public static void show(Context a_Context, String a_Msg){
		close();
		if(mContext != a_Context){
			mContext = a_Context;
		}
		mDialog = new ProgressDialog(mContext);
		mDialog.setMessage(a_Msg);
		mDialog.setIndeterminate(true);
		mDialog.setCancelable(true);
		mDialog.show();
	}
	
	public static void close(){
		if (mDialog != null){
			mDialog.cancel();
		}
	}
}
